package com.yeyks.rabbitmq.queue;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author fuchangshuai
 * @date 2019/4/10 2:37 PM
 */
//@Configuration
public class RabbitMqGetuiQueue {

    public static final String ORDER_QUEUE_GETUI = "order.queue.getui";

    private static final String ORDER_GETUI_EXCHANGE = "order.getui.exchange";

    private static final String ORDER_GETUI_KEY = "order.getui.Key";


//    /**
//     * 执行队列
//     *
//     * @return
//     */
//    @Bean
//    public Queue orderQueue() {
//        return new Queue(ORDER_QUEUE_GETUI, true);
//    }
//
//    /**
//     * 执行队列exchange
//     *
//     * @return
//     */
//    @Bean
//    public DirectExchange orderDirectExchange() {
//        return new DirectExchange(ORDER_GETUI_EXCHANGE);
//    }
//
//    /**
//     * 将执行队列与exchange绑定
//     *
//     * @return
//     */
//    @Bean
//    public Binding orderBinding() {
//        return BindingBuilder.bind(orderQueue()).to(orderDirectExchange()).with(ORDER_GETUI_KEY);
//    }

}
